<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
  <img id="indicator_gcklst" src="images/ajax-loader3.gif" alt="Cargando..." style="display: none" />
 <sj:accordion id="accordionx2233" autoHeight="false" > 
     <s:iterator var="outer" status="outer_status" value="lst_check" > 
     <s:set name="titulo"><s:property value="value.contrato" /></s:set>
     <s:set name="n_ctd"><s:property value="value.id" /></s:set>
     <sj:accordionItem title="%{titulo}" >
	  <sj:div id='div_ck_%{n_ctd}' >
		 	<s:form id='form_enviarchecklist_%{n_ctd}'  theme="simple">
			<s:set name="n_codigo"><s:property value="value.prospecto" /></s:set>
			<s:hidden name='check.prospecto' value='%{n_codigo}'></s:hidden>
		    <table width="100%">
		        <tr>
					<td width="10%" colspan='4'>
					    <s:actionmessage theme="jquery" /> 
		    			<s:actionerror theme="jquery" /> 
					</td>
				</tr>	
				<tr>
					<td width="10%" class='tabla_th1'>Status:</td>
					<td width="25%" class='tabla_celda1' align="left"><s:property value="value.status" /> - <s:property value="value.fecha_status" /></td>
					<td width="15%"  class='tabla_th1'>Observaciones:</td>
					<td width="50%" class='tabla_celda1' align="left"><s:property value="value.obs_legal" /></td>
						<s:set name="n_cod_chkl"><s:property value="value.codigo" /></s:set>
						<s:hidden name='check.codigo' value='%{n_cod_chkl}'></s:hidden>
				</tr>
		     </table>	
			 <table width="70%" align="left">
				<th class='tabla_th1' colspan="20">Informacion del contrato</th>
				<tr>
					<td width="5%">
						Contrato:
					</td>
					<td align="left" >
					    <s:set name="n_contrato"><s:property value="value.contrato" /></s:set>
					    <s:textfield theme='simple' cssClass='caja1' size='15' name='check.contrato'  value='%{n_contrato}' > </s:textfield> 
					</td>
				</tr>
				<tr>
					<td width="5%">
					     <s:set name="n_demo"><s:property value="value.demo" /></s:set>
						 <s:checkbox name="check.demo" theme="simple"  ></s:checkbox>
					</td>
					<td align="left" >
						Es un demo
					</td>
					
				</tr>
				<tr>
					<td width="5%">
					    <s:set name="n_azo"><s:property value="value.azotea" /></s:set>
						 <s:checkbox name="check.azotea" theme="simple" ></s:checkbox>
					</td>
					<td align="left" >
						Permiso o acceso a la azotea
					</td>
				</tr>
				<tr>
					<td width="5%">
					    <s:set name="n_fibra"><s:property value="value.fibra" /></s:set>
						<s:checkbox name="check.fibra" theme="simple" ></s:checkbox>
					</td>
					<td align="left" >
						Servicio de fibra optica
					</td>
				</tr>
				<tr>
					<td width="5%">
					    <s:set name="n_ant"><s:property value="value.anticipo" /></s:set>
						<s:checkbox name="check.anticipo" theme="simple" ></s:checkbox>
					</td>
					<td align="left">
						Se cobra por anticipado
					</td>
				</tr>
		  </table>
		<br><br>
		  <table width="70%" border="0" align="left">
			<th class='tabla_th1' colspan="20" >Informacion del check list</th>
			<s:set name="n_ck1"><s:property value="value.lst_chk1" /></s:set>
			<s:set name="n_ck2"><s:property value="value.lst_chk2" /></s:set>
			<s:set name="n_ck3"><s:property value="value.lst_chk3" /></s:set>
			<s:set name="n_ck4"><s:property value="value.lst_chk4" /></s:set>
			<s:set name="n_ck5"><s:property value="value.lst_chk5" /></s:set>
			<s:set name="n_ck6"><s:property value="value.lst_chk6" /></s:set>
			<s:set name="n_ck7"><s:property value="value.lst_chk7" /></s:set>
			<tr>
				<td><s:checkbox name="check.lst_chk1" theme="simple" ></s:checkbox> </td>
				<td align="left" >Contrato de servicio y solicitud de servicio anexo 1 (2 originales)</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk2" theme="simple"  ></s:checkbox> </td>
				<td align="left">Acta de entrega de equipo</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk3" theme="simple" ></s:checkbox> </td>
				<td align="left">Convenio de instalacion de equipos</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk4" theme="simple" ></s:checkbox> </td>
				<td align="left" >Convenio para entrega del servicio (2 originales)</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk5" theme="simple"  ></s:checkbox> </td>
				<td align="left" >Copia del registro mercantil y ultima acta de asamblea</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk6" theme="simple" ></s:checkbox> </td>
				<td align="left" >Copia cedula de identidad del representante de la empresa</td>
			</tr>
			<tr>
				<td><s:checkbox name="check.lst_chk7" theme="simple" ></s:checkbox> </td>
				<td align="left" >Copia de rif </td>
			</tr>
		 </table>
		   	<table width="100%">
				<tr>
					<td width="10%">Observaciones</td>
					<td width="90%" colspan='3'><s:textarea name='obs' rows="5"
						cols="50"></s:textarea></td>
				</tr>
				<tr>
				<td colspan="3">
					&nbsp;
					   <img id="progreso_chk_list_gd1" src="images/ajax-loader3.gif" alt="Guardando..." style="display: none" />
				</td>
				</tr>
				<tr align="center">
					<td colspan="3"  align="center">
					<s:url id="insert" value="guardar_checklist.action"></s:url>
						<sj:submit id="ajaxlinkxx1sssservi__%{n_ctd}" 
								href="%{insert}" 
								targets="div_ck_%{n_ctd}" 
								indicator="progreso_chk_list_gd1" 
								button="true" 
								buttonIcon="ui-icon-refresh"
								value="Guardar check list"
							>
						</sj:submit>
					</td>
				</tr>
			</table>
		  </s:form>
         </sj:div>
      </sj:accordionItem> 
     </s:iterator> 
  </sj:accordion> 
</body>
</html>
